{% extends 'base_user_center.html' %}
{% block user_right_content %}
    {% load staticfiles %}
    <div class="right_content clearfix">
        <div class="info_con clearfix">
            <h3 class="common_title2">基本信息</h3>
              <ul class="user_info_list">
                <li><span>用户名：</span>{{ user.username }}</li>
                <li><span>联系方式：</span>{% if default_address %}{{ default_address.phone_num }}{% else %}----{% endif %}</li>
                <li><span>联系地址：</span>{% if default_address %}{{ default_address.address }}{% else %}----{% endif %}</li>
              </ul>
        </div>
        {% if goodsSkuList %}
        <h3 class="common_title2">最近浏览</h3>
        <div class="has_view_list">
            <ul class="goods_type_list clearfix">
                {% for goodsSku in goodsSkuList %}
                <li>
                    <a href="/detail/{{ goodsSku.id }}"><img src="/media/{{ goodsSku.image }}"></a>
                    <h4><a href="/detail/{{ goodsSku.id }}">{{ goodsSku.name }}</a></h4>
                    <div class="operate">
                        <span class="prize">￥{{ goodsSku.price }}</span>
                        <span class="unit">{{ goodsSku.price }}/{{ goodsSku.unit }}</span>
                        <a href="#" class="add_goods" title="加入购物车"></a>
                    </div>
                </li>
                {% endfor %}
            </ul>
        </div>
        {% endif %}
    </div>
{% endblock user_right_content %}